<div id="container">
  <div class="header"> <a href="/">
    <div class="logo">&nbsp;</div>
    </a>
    <div class="menu-top">
      <ul>
        <li> <a href=""><span class="cot-truyen">CỐT TRUYỆN</span></a> </li>
        <li> <a href=""><span class="huong-dan">HƯỚNG DẪN</span></a> </li>
        <li>
          <?
			if(isset($_COOKIE['username']) && $_COOKIE['username'] !=''){
		?>
          <a href="<?=$FullUrl?>/index.php?do=player&act=logout"><span class="choi-ngay">THOÁT GAME</span></a>
          <?
			}else{				
		?>
          <a href="<?=$FullUrl?>/index.php?do=player&act=login"><span class="choi-ngay">CHƠI NGAY</span></a>
          <?
			}
		?>
        </li>
        <li> <a href="http://diendan.aomonggiangho.com" target="_blank"><span class="dien-dan">DIỄN ĐÀN</span></a> </li>
        <li> <a href="https://www.facebook.com/AoMongGiangHo" target="_blank"><span class="face-book">FACEBOOK</span></a> </li>
      </ul>
    </div>
  </div>
  <div class="dangky-napthe">
    <div class="dknt-content <? if(isset($_COOKIE['username']) && $_COOKIE['username'] !=''){?>lg<?}?>"> 
    <?
			if(isset($_COOKIE['username']) && $_COOKIE['username'] !=''){
		?>
         <a href="<?=$FullUrl?>/index.php?do=player&act=chonserver">
      <div class="btn-form menu-dk">Chọn Server</div>
      </a>
   
      <?
			}else{				
		?>
        <a href="<?=$FullUrl?>/index.php?do=player&act=register">
      <div class="btn-form menu-dk">Đăng ký</div>
      </a>
       <?
			}
		?>
      <?
			if(isset($_COOKIE['username']) && $_COOKIE['username'] !=''){
		?>
      <a href="<?=$FullUrl?>/index.php?do=player&act=napthe">
      <div class="btn-form menu-dk" style="margin-left:5px;">Nạp thẻ</div>
      </a>
      <a href="<?=$FullUrl?>/index.php?do=player&act=giftlvl">
      <div class="btn-form menu-dk" style="margin-left:5px;">Gift</div>
      </a>
      <?
			}else{				
		?>
      <a href="<?=$FullUrl?>/index.php?do=player&act=login">
      <div class="btn-form menu-dk" style="margin-left:5px;">Nạp thẻ</div>
      </a>
      <?
			}
	  ?>
    </div>
  </div>
  <div class="content">
    <?
			$filename = './templates/modules/'.$do.'/'.$tpl.'.php';
			
			//echo $filename;			
			if(file_exists($filename)) 
				include($filename); 
			else
				print('This page is not available tpl');
	  ?>
  </div>
</div>
<div class="footer">
  <div class="footer-content"> <span>Trò chơi được PMI Entertaiment phát hành tại Việt Nam theo ủy quyền từ cổng game 37wan.</span><br/>
    <span>Email: <a href="mailto:hotro@aomonggiangho.com">hotro@aomonggiangho.com</a></span><br/>
    <span>Hotline: (08) 6.684.1343</span><br/>
  </div>
</div>
